package cn.demo.admin.example.web;

import cn.demo.admin.example.service.DebugService;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

/**
 * @author Mr.css
 * @version 2023-05-10 10:46
 */
@Controller
@RequestMapping("debug")
public class ExampleCtrl {

    @Resource
    private DebugService service;

    @ResponseBody
    @RequestMapping("data")
    public List<Map<String, Object>> get() {
        return service.query();
    }
}
